﻿@model IQueryable<Model.orders>

<link href="~/Content/css/MyOrders.css" rel="stylesheet" />

<ul class="order-title order-b">
    <li>订单编号</li>
    <li>商品数量</li>
    <li>总价</li>
    <li>状态</li>
    <li>操作</li>
</ul>
@foreach (var item in Model)
{
    string orderstate = "";
    <div class="orderitem">
        @if (item.nowState == 1) { orderstate = "未支付"; }
        else { orderstate = "已支付"; }
        <ul class="order-b">
            <li>@item.ID</li>
            <li>@item.goodNum</li>
            <li>@item.sumPrice</li>
            <li>@orderstate</li>
            <li><a href="@Url.Action("DetailToPlaceOrder","Store",new{ orderID = item.ID})">查看订单</a></li>
        </ul>
    </div>
}